<div id="page-wrapper">
    <!-- /.row -->
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <span class="judul-page">Master Komponen Pembayaran</span>
                    <span class="pull-right">
                       
                        <a href="<?php echo base_url()?>mr_komp_pembayaran/add" class="btn btn-warning btn-xs"><span class="glyphicon glyphicon-plus"></span>&nbsp;Tambah Data</a>
                    </span>
                    <div class="clearfix"></div>
                </div>
                <div class="panel-body">
                    <div class="table-responsive">
                      <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th width="50">#</th>
                                <th width="180">Nama Komponen</th>
								<th>Jenis Komponen</th>
                            </tr>
                        </thead>
                        <tbody>
						<?php 
							$i = 1; 
							foreach ($hasil as $row) {
						?>										
                            <tr>
                                <td><?php echo $i++ ?></td>
                                <td><?php echo $row['nama_komp']; ?></td> 
								<td>
									<?php echo $row['jenis_komp']; ?>
									<span class="pull-right">
										<a href="<?php echo site_url('mr_komp_pembayaran/edit/'.$row['id_komp']);?>" class="btn btn-success btn-xs" title="Edit"><span class="glyphicon glyphicon-edit"></span></a>										
										<a href="<?php echo site_url('mr_komp_pembayaran/delete/'.$row['id_komp']);?>" onclick="return confirm('Yakin Anda akan menghapus data Komponen ini secara permanen?')" class="btn btn-danger btn-xs" title="Hapus"><span class="glyphicon glyphicon-trash"></span></a>
									</span>
								</td>
                            </tr>
						<?php
							}
						?>
                        </tbody>
                      </table>
                    </div>
                    <div class="clearfix"></div>
                     <?php
echo ! empty($pagination) ? '<center><ul class="pagination">' . $pagination . '</ul></center>' : '';
?>
                </div>
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /#page-wrapper -->